package top.csy8888.placeorder.mapper;

import top.csy8888.placeorder.entity.Order;

/**
 * @author CSY
 * @date 2025 - 09 - 28
 */
public interface OrderMapper {
    /**
     * 生成订单
     * @param order 订单信息
     */
    void addOrder(Order order);

    /**
     * 获取订单
     * @param orderId
     * @return
     */
    Order getOrderById(Integer orderId);

    /**
     * 修改订单
     * @param order
     */
    void update(Order order);
}
